package com.ruoyi.intergral.api;

import com.ruoyi.intergral.api.factory.RemoteIntergralFallbackFactory;
import com.ruoyi.intergral.api.model.AlipayVo;
import com.ruoyi.intergral.api.model.RefundVo;
import com.ruoyi.intergral.api.model.OperateIntergralVo;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: zhangJiang
 */
@FeignClient(contextId = "remoteIntergralService", value = ServiceNameConstants.INTERGRAL_SERVICE, fallbackFactory = RemoteIntergralFallbackFactory.class)
public interface RemoteIntergralService {

    @GetMapping("/intergral/decrIntergral")
    R<String> decrIntergral(@RequestBody OperateIntergralVo vo);
}
